package dao;

import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T> {
    public boolean insert(T t) throws SQLException, ClassNotFoundException;
    public boolean deleteById(int id) throws SQLException, ClassNotFoundException;
    public boolean update(T t) throws SQLException, ClassNotFoundException;
    public List<T> selectAll() throws SQLException, ClassNotFoundException;
    public T selectById(int id) throws SQLException, ClassNotFoundException;
    public int batchInsert(List<T> userInfos) throws SQLException, ClassNotFoundException;
}
